<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@taglib prefix = "c" uri = "http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Stavostroj</title>
	
	<style>
		.error {
			color: #ff0000;
			font-style: italic;
		}
		body{
			background-color:orange;
			margin:auto auto;
			padding:0px;
			width:500px;
			height:500px;
			
		}
		#login {
			background-color:#ffd587;
			width:500px;
			
			
			
		}
		h1{
			color:#000095;
		}
</style>
</head>
<body>
<div id="login">
<center>
<h1>
	Vítejte do aplikace Stavostroj
</h1>


<form:form commandName="login" action="">
 
    <table>
    <tr>
        <td><form:label path="loginName">Login</form:label></td>
        <td><form:input path="loginName" /></td>
        <td><form:errors path="loginName" cssClass="error" /></td>
    </tr>
    <tr>
        <td><form:label path="pass">Pass</form:label></td>
        <td><form:password path="pass" /></td>
        <td><form:errors path="pass" cssClass="error" /></td>
    </tr>
    <tr>
        <td colspan="2">
            <input type="submit" value="Přihlásit"/>
        </td>
    </tr>
</table>  
 
</form:form>
<c:if test="${error != NULL}">
<p><strong>${error}</strong></p>
</c:if>
</center>
</div>

</body>
</html>
